package com.sharemarking.wa.platform.controller;


import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.DriverVerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RequestMapping("driverVerify")
@RestController
public class DriverVerifyController {
    @Autowired
    DriverVerifyService driverVerifyService;

    /**
     *新增或编辑司机认证信息
     * @return
     * @throws Exception
     */
    @RequestMapping("addOrEdit")
    public ResponseParams<?> addOrEdit() throws Exception {
        return driverVerifyService.addOrEdit();
    }

    /**
     * 获取司机认证信息
     * @return
     * @throws Exception
     */
    @RequestMapping("getInfo")
    public ResponseParams<?> getInfo() throws Exception {
        return driverVerifyService.getInfo();
    }

    /**
     * 获取公司列表
     * @return
     * @throws Exception
     */
    @RequestMapping("getOrgList")
    public ResponseParams<?> getOrgList() throws Exception {
        return driverVerifyService.getOrgList();
    }


    /**
     * 司机是否认证
     * @return
     * @throws Exception
     */
    @RequestMapping("isOrgVerify")
    public ResponseParams<?> isOrgVerify() throws Exception {
        return driverVerifyService.isOrgVerify();
    }

}
